<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>会员中心</title>

    <link rel="stylesheet" type="text/css" href="../../style/css/user/css.css">
    <link rel="stylesheet" type="text/css" href="../../style/css/user/center.css">
    <style>
        #backImgId {
            width: 40px;
            height: 37px;
            position: relative;
            top: -28px;
            left: 700px;
        }
    </style>
    <script src="../../style/js/jquery-1.8.3.js" type="text/javascript"></script>
    <script src="../../style/js/ajaxfileupload.js"></script>
    <script type="text/javascript">
        $(function (){
            var userId = window.sessionStorage.getItem("userId");
            var userNickName = window.sessionStorage.getItem("userNickName");
            var userNewFileName = window.sessionStorage.getItem("userNewFiLeName");

            //显示昵称头像
            console.log("http://127.0.0.1:8080/tomorrowNewsFiles/user/" + userId + "/" + userNewFileName)
            var src = "http://127.0.0.1:8080/tomorrowNewsFiles/user/" + userId + "/" + userNewFileName
            $("#imgId").html("<img src='" + src + "' height='40px' width='40px' style='border-radius:30px'>")
            $("#nickNameId").html(userNickName);
        })


        function exit() {
            if(confirm("确认退出?")){
                //删除前端浏览器存储的administrator信息
                window.sessionStorage.clear()
                //向服务器发送请求,销毁session
                $.get("../../user/exit",function(){
                    window.sessionStorage.clear()
                    location.replace("../../front/index.html")
                });
            }
        }
    </script>

</head>
<body>

<!--导航-->
<div class="dao_hang">
    <div class="nav_css">
        <!--会员中心-->
        <div class="important">
            <img src="" style=" margin-top:13px">&nbsp;
            会员中心
        </div>

        <div class="dao_list" id="headId">
            <a href="javaScript:void(0)" id="imgId">
                <img src="" style="width: 40px;height: 40px; border-radius: 20px; "/>
            </a>
            <a href="javaScript:void(0)"><span id="nickNameId"></span></a>
            <a href="javaScript:void(0)" onclick="exit()">退出账号</a>
        </div>
    </div>

    <a href="../../front/index.html">
        <img src="../../style/img/user/backMain.png" id="backImgId">
    </a>
</div>


<!--会员中心-->
<div class="centers_m">
    <!--左边导航菜单-->
    <div class="centers_ml">
        <!--列表go-->
        <div class="centers_listm">
            <div class="centers_listm_one">
                <img src="../../style/img/user/zshy.png">
                <em>会员管理</em>
            </div>
            <!--资料管理开始-->
            <div class="centers_listm_one_in">
                <img src="../../style/img/user/shezhi.png">
                <em>资料管理</em>
            </div>
            <span class="gjszmdm">
                <a href="user_msg.html" class="center_in_self" target="workspace"><font>个人信息</font></a>
            </span>
            <!--账户安全开始-->
            <div class="centers_listm_one_in">
                <img src="../../style/img/user/suo.png">
                <em>账户安全</em>
                <b></b>
            </div>
            <span class="gjszmdm">
                <a href="update_password.html" class="center_in_self" target="workspace"><font>修改密码</font></a>
            </span>
            <!--收藏管理开始-->
            <div class="centers_listm_one_in">
                <img src="../../style/img/user/wdssc.png">
                <em>收藏管理</em>
                <b></b>
            </div>
            <span class="gjszmdm">
            	<a href="user_collect.html" class="center_in_self" target="workspace"><font>我的收藏</font></a>
            </span>
            <!--评论管理开始-->
            <div class="centers_listm_one_in">
                <img src="../../style/img/user/myfridend.png">
                <em>评论管理</em>
                <b></b>
            </div>
            <span class="gjszmdm">
            	<a href="userComment.html" class="center_in_self" target="workspace"><font>我的评论</font></a>
            </span>
        </div>
    </div>

    <!--右边操作区间-->
    <div class="centers_mr">
        <iframe name="workspace" src="default.html" width="100%" height="100%"></iframe>
    </div>

</div>
</body>
</html>